home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / gzip 1.2.2 / gzip.r < prev    next >
Encoding:
Text File  |  1993-07-11  |  6.3 KB  |  300 lines  |  [TEXT/MPS ]

  1. /*
  2.     gzip.r -- commando definition for gzip
  3.  
  4.     Copyright (c) 1993 Anthony C. Ard.
  5.  
  6.     This program is free software; you can redistribute it and/or
  7.     modifiy it under the terms of the GNU General Public License
  8.     as published by the Free Software Foundation; either version 2
  9.     of the License, or (at your option) any later version.
  10.     
  11.     This program is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14.     GNU General Public License for more details.
  15.     
  16.     You should have received a copy of the GNU General Public License
  17.     along with this program; if not, write to the Free Software
  18.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20.  
  21. #include "cmdo.r"
  22.  
  23. resource 'cmdo' (128) {
  24.     {    /* array dialogs: 2 elements */
  25.         /* [1] */
  26.         310,
  27.         "gzip -- compress or expand files.",
  28.         {    /* array itemArray: 14 elements */
  29.             /* [1] */
  30.             NotDependent {
  31.  
  32.             },
  33.             RadioButtons {
  34.                 {    /* array radioArray: 4 elements */
  35.                     /* [1] */
  36.                     {42, 52, 57, 177}, "Compress file(s)", "", Set, "When this button is selected, gzip will compress the given f"
  37.                     "ile(s). (This is the default behavior of gzip.)",
  38.                     /* [2] */
  39.                     {60, 52, 76, 198}, "Decompress file(s)", "-d", NotSet, "When this button is selected, gzip will decompress file(s) e"
  40.                     "nding in .Z, .gz, or .z.",
  41.                     /* [3] */
  42.                     {79, 52, 95, 198}, "List contents", "-l", NotSet, "When this button is selected, gzip will list the contents of"
  43.                     " compressed files ending in .Z, .gz, or .z.",
  44.                     /* [4] */
  45.                     {98, 52, 114, 198}, "Test file", "-t", NotSet, "When this button is selected, gzip will test the contents of"
  46.                     " compressed files ending in .Z, .gz, or .z."
  47.                 }
  48.             },
  49.             /* [2] */
  50.             NotDependent {
  51.  
  52.             },
  53.             TextBox {
  54.                 black,
  55.                 {30, 29, 121, 221},
  56.                 "Conversion"
  57.             },
  58.             /* [4] */
  59.             NotDependent {
  60.  
  61.             },
  62.             CheckOption {
  63.                 NotSet,
  64.                 {31, 250, 47, 441},
  65.                 "Write to standard output",
  66.                 "-c",
  67.                 "Write to standard output and do not remove original files."
  68.             },
  69.             /* [5] */
  70.             NotDependent {
  71.  
  72.             },
  73.             CheckOption {
  74.                 NotSet,
  75.                 {49, 250, 65, 462},
  76.                 "Display progress information (verbose)",
  77.                 "-v",
  78.                 "Show name and ratio for each file processed."
  79.             },
  80.             /* [6] */
  81.             NotDependent {
  82.  
  83.             },
  84.             CheckOption {
  85.                 NotSet,
  86.                 {67, 250, 83, 444},
  87.                 "Show version information",
  88.                 "-V",
  89.                 "Show the program’s version number and author."
  90.             },
  91.             /* [7] */
  92.             NotDependent {
  93.  
  94.             },
  95.             CheckOption {
  96.                 NotSet,
  97.                 {85, 250, 101, 425},
  98.                 "Show help information",
  99.                 "-h",
  100.                 "Show all help information that describes all the functions of gzip."
  101.             },
  102.             /* [8] */
  103.             NotDependent {
  104.  
  105.             },
  106.             CheckOption {
  107.                 NotSet,
  108.                 {103, 250, 120, 461},
  109.                 "Show license information",
  110.                 "-L",
  111.                 "Show version, author, and GNU license information."
  112.             },
  113.             /* [3] */
  114.             NotDependent {
  115.  
  116.             },
  117.             NestedDialog {
  118.                 2,
  119.                 {131, 252, 151, 451},
  120.                 "More Options…",
  121.                 "Click this button to choose additional gzip options."
  122.             },
  123.             /* [9] */
  124.             NotDependent {
  125.  
  126.             },
  127.             MultiFiles {
  128.                 "File(s) to convert…",
  129.                 "Click this button to choose the files you wish to convert.",
  130.                 {131, 29, 151, 221},
  131.                 "File(s) to Convert:",
  132.                 "",
  133.                 MultiInputFiles {
  134.                     {    /* array MultiTypesArray: 1 elements */
  135.                         /* [1] */
  136.                         text
  137.                     },
  138.                     FilterTypes,
  139.                     "only text files",
  140.                     "All files      "
  141.                 }
  142.             },
  143.             /* [10] */
  144.             NotDependent {
  145.  
  146.             },
  147.             Redirection {
  148.                 StandardInput,
  149.                 {160, 37}
  150.             },
  151.             /* [11] */
  152.             NotDependent {
  153.  
  154.             },
  155.             Redirection {
  156.                 StandardOutput,
  157.                 {160, 183}
  158.             },
  159.             /* [12] */
  160.             NotDependent {
  161.  
  162.             },
  163.             Redirection {
  164.                 DiagnosticOutput,
  165.                 {160, 329}
  166.             },
  167.             /* [13] */
  168.             NotDependent {
  169.  
  170.             },
  171.             DoItButton {
  172.  
  173.             },
  174.             /* [14] */
  175.             NotDependent {
  176.  
  177.             },
  178.             VersionDialog {
  179.                 VersionString {
  180.                     "1.2.2"
  181.                 },
  182.                 "Version 1.2.2, Copyright © 1993 Free Software Foundation."
  183.                 " Commando dialog by Anthony C. Ard. Use the -L option for more information.",
  184.                 noDialog
  185.             }
  186.         },
  187.         /* [2] */
  188.         280,
  189.         "Choose additional gzip options.",
  190.         {    /* array itemArray: 8 elements */
  191.             /* [1] */
  192.             NotDependent {
  193.  
  194.             },
  195.             CheckOption {
  196.                 NotSet,
  197.                 {51, 240, 68, 411},
  198.                 "ASCII text",
  199.                 "-a",
  200.                 "Convert end-of-lines using local conventions. "
  201.                 "(Doesn't really do anything on the Mac.)"
  202.             },
  203.             /* [2] */
  204.             NotDependent {
  205.  
  206.             },
  207.             CheckOption {
  208.                 NotSet,
  209.                 {69, 240, 86, 411},
  210.                 "Force overwrite",
  211.                 "-f",
  212.                 "Force overwrite of output file and compress links. "
  213.                 "(MacOS version doesn't support links.)"
  214.             },
  215.             /* [3] */
  216.             NotDependent {
  217.  
  218.             },
  219.             CheckOption {
  220.                 NotSet,
  221.                 {87, 240, 104, 411},
  222.                 "Don't store name",
  223.                 "-n",
  224.                 "Do not save or restore the original name."
  225.             },
  226.             /* [4] */
  227.             NotDependent {
  228.  
  229.             },
  230.             CheckOption {
  231.                 NotSet,
  232.                 {105, 240, 122, 411},
  233.                 "Suppress all warnings",
  234.                 "-q",
  235.                 "Supresses all warnings."
  236.             },
  237.             /* [5] */
  238.             NotDependent {
  239.  
  240.             },
  241.             CheckOption {
  242.                 NotSet,
  243.                 {123, 240, 140, 411},
  244.                 "Recurse directories",
  245.                 "-r",
  246.                 "Recurse one level deep through directories."
  247.             },
  248.             /* [6] */
  249.             NotDependent {
  250.  
  251.             },
  252.             RadioButtons {
  253.                 {    /* array radioArray: 9 elements */
  254.                     /* [1] */
  255.                     {57, 81, 72, 111}, "1", "-1", NotSet, "Fastest with least compression.",
  256.                     /* [2] */
  257.                     {74, 81, 89, 111}, "2", "-2", NotSet, "Faster with lesser compression.",
  258.                     /* [3] */
  259.                     {92, 81, 107, 111}, "3", "-3", NotSet, "Faster with lesser compression.",
  260.                     /* [4] */
  261.                     {57, 121, 72, 151}, "4", "-4", NotSet, "Faster with lesser compression.",
  262.                     /* [5] */
  263.                     {74, 121, 89, 151}, "5", "-5", NotSet, "Faster with lesser compression.",
  264.                     /* [6] */
  265.                     {92, 121, 107, 151}, "6", "", Set, "Default. Good speed. Good compression.",
  266.                     /* [7] */
  267.                     {57, 161, 72, 191}, "7", "-7", NotSet, "Slower with more compression.",
  268.                     /* [8] */
  269.                     {74, 161, 89, 191}, "8", "-8", NotSet, "Slower with more compression.",
  270.                     /* [9] */
  271.                     {92, 161, 107, 191}, "9", "-9", NotSet, "Slowest with most comprssion"
  272.                 }
  273.             },
  274.             /* [7] */
  275.             NotDependent {
  276.  
  277.             },
  278.             TextBox {
  279.                 black,
  280.                 {43, 66, 116, 206},
  281.                 "Compression Ratio"
  282.             },
  283.             /* [8] */
  284.             NotDependent {
  285.  
  286.             },
  287.             RegularEntry {
  288.                 "Suffix",
  289.                 {129, 75, 145, 120},
  290.                 {129, 122, 145, 203},
  291.                 "",
  292.                 keepCase,
  293.                 "-S",
  294.                 "use/look for this suffix instead of .gz, .Z, or .z."
  295.             }
  296.         }
  297.     }
  298. };
  299.  
  300.